﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using eShop.Business;
using eShop.Model;

public partial class test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //string path = HttpContext.Current.Request.Url.AbsolutePath;
        
        //bool isHttp, isHttps;
        //isHttps = eShop.Business.SiteUtility.IsSecuredConnection;
        //isHttp = !isHttps;

        //bool isSSLRequired = SecurePath.IsSecure("/login.aspx");

        //HttpContext.Current.Response.Write(isSSLRequired.ToString()+"<;;;>"+path + ":" + isHttp.ToString() + ":" + isHttps.ToString() + ":::" + HttpContext.Current.Request.ServerVariables["HTTPS"].ToString().ToLower() + "<br/>");

        //foreach (string var in HttpContext.Current.Request.ServerVariables)
        //{
        //    HttpContext.Current.Response.Write(var + ":" + Request[var] + "<br/>");
        //}

        //if (isSSLRequired && isHttp)
        //{
        //}

        Order order = OrderManager.GetOrderById(18);
        new Email().SendInvoiceEmail(order, 10267);
    }
}